aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r--fs/reiserfs/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 7054aaef0493..5c58b419f4ee 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -433,12 +433,13 @@ int remove_save_link(struct inode *inode, int truncate)
433static void reiserfs_kill_sb(struct super_block *s) 433static void reiserfs_kill_sb(struct super_block *s)
434{ 434{
435 if (REISERFS_SB(s)) { 435 if (REISERFS_SB(s)) {
436#ifdef CONFIG_REISERFS_FS_XATTR
436 if (REISERFS_SB(s)->xattr_root) { 437 if (REISERFS_SB(s)->xattr_root) {
437 d_invalidate(REISERFS_SB(s)->xattr_root); 438 d_invalidate(REISERFS_SB(s)->xattr_root);
438 dput(REISERFS_SB(s)->xattr_root); 439 dput(REISERFS_SB(s)->xattr_root);
439 REISERFS_SB(s)->xattr_root = NULL; 440 REISERFS_SB(s)->xattr_root = NULL;
440 } 441 }
441 442#endif
442 if (REISERFS_SB(s)->priv_root) { 443 if (REISERFS_SB(s)->priv_root) {
443 d_invalidate(REISERFS_SB(s)->priv_root); 444 d_invalidate(REISERFS_SB(s)->priv_root);
444 dput(REISERFS_SB(s)->priv_root); 445 dput(REISERFS_SB(s)->priv_root);
@@ -1562,9 +1563,10 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
1562 REISERFS_SB(s)->s_alloc_options.preallocmin = 0; 1563 REISERFS_SB(s)->s_alloc_options.preallocmin = 0;
1563 /* Preallocate by 16 blocks (17-1) at once */ 1564 /* Preallocate by 16 blocks (17-1) at once */
1564 REISERFS_SB(s)->s_alloc_options.preallocsize = 17; 1565 REISERFS_SB(s)->s_alloc_options.preallocsize = 17;
1566#ifdef CONFIG_REISERFS_FS_XATTR
1565 /* Initialize the rwsem for xattr dir */ 1567 /* Initialize the rwsem for xattr dir */
1566 init_rwsem(&REISERFS_SB(s)->xattr_dir_sem); 1568 init_rwsem(&REISERFS_SB(s)->xattr_dir_sem);
1567 1569#endif
1568 /* setup default block allocator options */ 1570 /* setup default block allocator options */
1569 reiserfs_init_alloc_options(s); 1571 reiserfs_init_alloc_options(s);
1570 1572