Message ID | 20150201063116.GP29656@ZenIV.linux.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sun, Feb 01, 2015 at 06:31:16AM +0000, Al Viro wrote: > And at that point we finally can make sb_lock and super_blocks static in > fs/super.c. Do you want that in your tree, or would you rather have it > done via vfs.git during the merge window after your tree goes in? It's > as trivial as this: > > Make super_blocks and sb_lock static > > The only user outside of fs/super.c is gone now > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> I'd say merge it through the block tree.. Acked-by: Christoph Hellwig <hch@lst.de> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 02/02/2015 01:06 AM, Christoph Hellwig wrote: > On Sun, Feb 01, 2015 at 06:31:16AM +0000, Al Viro wrote: >> And at that point we finally can make sb_lock and super_blocks static in >> fs/super.c. Do you want that in your tree, or would you rather have it >> done via vfs.git during the merge window after your tree goes in? It's >> as trivial as this: >> >> Make super_blocks and sb_lock static >> >> The only user outside of fs/super.c is gone now >> >> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > > I'd say merge it through the block tree.. > > Acked-by: Christoph Hellwig <hch@lst.de> Added to for-3.20/bdi
diff --git a/fs/super.c b/fs/super.c index eae088f..91badbb 100644 --- a/fs/super.c +++ b/fs/super.c @@ -36,8 +36,8 @@ #include "internal.h" -LIST_HEAD(super_blocks); -DEFINE_SPINLOCK(sb_lock); +static LIST_HEAD(super_blocks); +static DEFINE_SPINLOCK(sb_lock); static char *sb_writers_name[SB_FREEZE_LEVELS] = { "sb_writers", diff --git a/include/linux/fs.h b/include/linux/fs.h index 1f3c439..efc384e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1184,8 +1184,6 @@ struct mm_struct; #define UMOUNT_NOFOLLOW 0x00000008 /* Don't follow symlink on umount */ #define UMOUNT_UNUSED 0x80000000 /* Flag guaranteed to be unused */ -extern struct list_head super_blocks; -extern spinlock_t sb_lock; /* Possible states of 'frozen' field */ enum {