diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-04 12:14:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-04 12:14:01 -0400 |
commit | e1cc485262846dcad931bf85ee655cbbb815bfe6 (patch) | |
tree | 5b3ae42ce41f9fe0149ad49e9811ac8f8e8b2016 /fs/ext3 | |
parent | 4d6d367232813af09d9a1d90e3259e3ac42ee8a8 (diff) | |
parent | 09e05d4805e6c524c1af74e524e5d0528bb3fef3 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull ext3 & udf fixes from Jan Kara:
"Shortlog pretty much says it all.
The interesting bits are UDF support for direct IO and ext3 fix for a
long standing oops in data=journal mode."
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
jbd: Fix assertion failure in commit code due to lacking transaction credits
UDF: Add support for O_DIRECT
ext3: Replace 0 with NULL for pointer in super.c file
udf: add writepages support for udf
ext3: don't clear orphan list on ro mount with errors
reiserfs: Make reiserfs_xattr_handlers static
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/super.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index bd29894c8fbc..17ae5c83d234 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -980,7 +980,7 @@ static int parse_options (char *options, struct super_block *sb, | |||
980 | * Initialize args struct so we know whether arg was | 980 | * Initialize args struct so we know whether arg was |
981 | * found; some options take optional arguments. | 981 | * found; some options take optional arguments. |
982 | */ | 982 | */ |
983 | args[0].to = args[0].from = 0; | 983 | args[0].to = args[0].from = NULL; |
984 | token = match_token(p, tokens, args); | 984 | token = match_token(p, tokens, args); |
985 | switch (token) { | 985 | switch (token) { |
986 | case Opt_bsd_df: | 986 | case Opt_bsd_df: |
@@ -1484,10 +1484,12 @@ static void ext3_orphan_cleanup (struct super_block * sb, | |||
1484 | } | 1484 | } |
1485 | 1485 | ||
1486 | if (EXT3_SB(sb)->s_mount_state & EXT3_ERROR_FS) { | 1486 | if (EXT3_SB(sb)->s_mount_state & EXT3_ERROR_FS) { |
1487 | if (es->s_last_orphan) | 1487 | /* don't clear list on RO mount w/ errors */ |
1488 | if (es->s_last_orphan && !(s_flags & MS_RDONLY)) { | ||
1488 | jbd_debug(1, "Errors on filesystem, " | 1489 | jbd_debug(1, "Errors on filesystem, " |
1489 | "clearing orphan list.\n"); | 1490 | "clearing orphan list.\n"); |
1490 | es->s_last_orphan = 0; | 1491 | es->s_last_orphan = 0; |
1492 | } | ||
1491 | jbd_debug(1, "Skipping orphan recovery on fs with errors.\n"); | 1493 | jbd_debug(1, "Skipping orphan recovery on fs with errors.\n"); |
1492 | return; | 1494 | return; |
1493 | } | 1495 | } |