Re: [PATCH 6/6] UDF cleanup and fixes

2007-03-07 Thread Christoph Hellwig
On Tue, Mar 06, 2007 at 05:48:39PM +0100, Jan Kara wrote:
> We have to decrease link-count of the parent directory when removing a
> subdirectory.

Ok.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 6/6] UDF cleanup and fixes

2007-03-06 Thread Jan Kara
We have to decrease link-count of the parent directory when removing a
subdirectory.

Signed-off-by: Jan Kara <[EMAIL PROTECTED]>

diff -rupX /home/jack/.kerndiffexclude 
linux-2.6.20-5-large_file_fix/fs/udf/namei.c 
linux-2.6.20-6-rmdir_fix/fs/udf/namei.c
--- linux-2.6.20-5-large_file_fix/fs/udf/namei.c2007-02-22 
14:57:59.0 +0100
+++ linux-2.6.20-6-rmdir_fix/fs/udf/namei.c 2007-03-01 16:26:45.0 
+0100
@@ -878,7 +878,7 @@ static int udf_rmdir(struct inode * dir,
inode->i_nlink);
clear_nlink(inode);
inode->i_size = 0;
-   inode_dec_link_count(inode);
+   inode_dec_link_count(dir);
inode->i_ctime = dir->i_ctime = dir->i_mtime = 
current_fs_time(dir->i_sb);
mark_inode_dirty(dir);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/