Whamcloud - gitweb
catch up with b_devel
authorshaver <shaver>
Fri, 28 Feb 2003 21:42:20 +0000 (21:42 +0000)
committershaver <shaver>
Fri, 28 Feb 2003 21:42:20 +0000 (21:42 +0000)
lustre/extN/ext3-largefile.diff [new file with mode: 0644]

diff --git a/lustre/extN/ext3-largefile.diff b/lustre/extN/ext3-largefile.diff
new file mode 100644 (file)
index 0000000..db41aab
--- /dev/null
@@ -0,0 +1,23 @@
+Under rare conditions (filesystem corruption, really) it is possible
+for ext3_dirty_inode() to require _two_ blocks for the transaction: one
+for the inode and one to update the superblock - to set
+EXT3_FEATURE_RO_COMPAT_LARGE_FILE.  This causes the filesystem to go
+BUG.
+
+So reserve an additional block for that eventuality.
+
+
+ fs/ext3/inode.c |    2 +-
+ 1 files changed, 1 insertion(+), 1 deletion(-)
+
+--- 25/fs/ext3/inode.c~ext3-transaction-reserved-blocks        Sat Dec 14 18:28:21 2002
++++ 25-akpm/fs/ext3/inode.c    Sat Dec 14 18:28:21 2002
+@@ -2698,7 +2698,7 @@ void ext3_dirty_inode(struct inode *inod
+       handle_t *handle;
+       lock_kernel();
+-      handle = ext3_journal_start(inode, 1);
++      handle = ext3_journal_start(inode, 2);
+       if (IS_ERR(handle))
+               goto out;
+       if (current_handle &&