diff options
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r-- | fs/reiserfs/super.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 7054aaef0493..c7762140c425 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/reiserfs_fs.h> | 18 | #include <linux/reiserfs_fs.h> |
19 | #include <linux/reiserfs_acl.h> | 19 | #include <linux/reiserfs_acl.h> |
20 | #include <linux/reiserfs_xattr.h> | 20 | #include <linux/reiserfs_xattr.h> |
21 | #include <linux/smp_lock.h> | ||
22 | #include <linux/init.h> | 21 | #include <linux/init.h> |
23 | #include <linux/blkdev.h> | 22 | #include <linux/blkdev.h> |
24 | #include <linux/buffer_head.h> | 23 | #include <linux/buffer_head.h> |
@@ -433,12 +432,13 @@ int remove_save_link(struct inode *inode, int truncate) | |||
433 | static void reiserfs_kill_sb(struct super_block *s) | 432 | static void reiserfs_kill_sb(struct super_block *s) |
434 | { | 433 | { |
435 | if (REISERFS_SB(s)) { | 434 | if (REISERFS_SB(s)) { |
435 | #ifdef CONFIG_REISERFS_FS_XATTR | ||
436 | if (REISERFS_SB(s)->xattr_root) { | 436 | if (REISERFS_SB(s)->xattr_root) { |
437 | d_invalidate(REISERFS_SB(s)->xattr_root); | 437 | d_invalidate(REISERFS_SB(s)->xattr_root); |
438 | dput(REISERFS_SB(s)->xattr_root); | 438 | dput(REISERFS_SB(s)->xattr_root); |
439 | REISERFS_SB(s)->xattr_root = NULL; | 439 | REISERFS_SB(s)->xattr_root = NULL; |
440 | } | 440 | } |
441 | 441 | #endif | |
442 | if (REISERFS_SB(s)->priv_root) { | 442 | if (REISERFS_SB(s)->priv_root) { |
443 | d_invalidate(REISERFS_SB(s)->priv_root); | 443 | d_invalidate(REISERFS_SB(s)->priv_root); |
444 | dput(REISERFS_SB(s)->priv_root); | 444 | dput(REISERFS_SB(s)->priv_root); |
@@ -1562,9 +1562,10 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent) | |||
1562 | REISERFS_SB(s)->s_alloc_options.preallocmin = 0; | 1562 | REISERFS_SB(s)->s_alloc_options.preallocmin = 0; |
1563 | /* Preallocate by 16 blocks (17-1) at once */ | 1563 | /* Preallocate by 16 blocks (17-1) at once */ |
1564 | REISERFS_SB(s)->s_alloc_options.preallocsize = 17; | 1564 | REISERFS_SB(s)->s_alloc_options.preallocsize = 17; |
1565 | #ifdef CONFIG_REISERFS_FS_XATTR | ||
1565 | /* Initialize the rwsem for xattr dir */ | 1566 | /* Initialize the rwsem for xattr dir */ |
1566 | init_rwsem(&REISERFS_SB(s)->xattr_dir_sem); | 1567 | init_rwsem(&REISERFS_SB(s)->xattr_dir_sem); |
1567 | 1568 | #endif | |
1568 | /* setup default block allocator options */ | 1569 | /* setup default block allocator options */ |
1569 | reiserfs_init_alloc_options(s); | 1570 | reiserfs_init_alloc_options(s); |
1570 | 1571 | ||