diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/dir.c | 1 | ||||
-rw-r--r-- | fs/ext4/extents.c | 1 | ||||
-rw-r--r-- | fs/ext4/inode.c | 7 | ||||
-rw-r--r-- | fs/ext4/namei.c | 27 | ||||
-rw-r--r-- | fs/ext4/resize.c | 1 | ||||
-rw-r--r-- | fs/ext4/xattr_security.c | 1 | ||||
-rw-r--r-- | fs/ext4/xattr_trusted.c | 1 | ||||
-rw-r--r-- | fs/ext4/xattr_user.c | 1 |
8 files changed, 18 insertions, 22 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index da80368b66f0..e8ad06e28318 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/jbd2.h> | 25 | #include <linux/jbd2.h> |
26 | #include <linux/ext4_fs.h> | 26 | #include <linux/ext4_fs.h> |
27 | #include <linux/buffer_head.h> | 27 | #include <linux/buffer_head.h> |
28 | #include <linux/smp_lock.h> | ||
29 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
30 | #include <linux/rbtree.h> | 29 | #include <linux/rbtree.h> |
31 | 30 | ||
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7916b50f9a13..a0f0c04e79b2 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <linux/time.h> | 34 | #include <linux/time.h> |
35 | #include <linux/ext4_jbd2.h> | 35 | #include <linux/ext4_jbd2.h> |
36 | #include <linux/jbd.h> | 36 | #include <linux/jbd.h> |
37 | #include <linux/smp_lock.h> | ||
38 | #include <linux/highuid.h> | 37 | #include <linux/highuid.h> |
39 | #include <linux/pagemap.h> | 38 | #include <linux/pagemap.h> |
40 | #include <linux/quotaops.h> | 39 | #include <linux/quotaops.h> |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 810b6d6474bf..b34182b6ee4d 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/time.h> | 27 | #include <linux/time.h> |
28 | #include <linux/ext4_jbd2.h> | 28 | #include <linux/ext4_jbd2.h> |
29 | #include <linux/jbd2.h> | 29 | #include <linux/jbd2.h> |
30 | #include <linux/smp_lock.h> | ||
31 | #include <linux/highuid.h> | 30 | #include <linux/highuid.h> |
32 | #include <linux/pagemap.h> | 31 | #include <linux/pagemap.h> |
33 | #include <linux/quotaops.h> | 32 | #include <linux/quotaops.h> |
@@ -2611,9 +2610,9 @@ void ext4_read_inode(struct inode * inode) | |||
2611 | } | 2610 | } |
2612 | inode->i_nlink = le16_to_cpu(raw_inode->i_links_count); | 2611 | inode->i_nlink = le16_to_cpu(raw_inode->i_links_count); |
2613 | inode->i_size = le32_to_cpu(raw_inode->i_size); | 2612 | inode->i_size = le32_to_cpu(raw_inode->i_size); |
2614 | inode->i_atime.tv_sec = le32_to_cpu(raw_inode->i_atime); | 2613 | inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime); |
2615 | inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->i_ctime); | 2614 | inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime); |
2616 | inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->i_mtime); | 2615 | inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime); |
2617 | inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec = inode->i_mtime.tv_nsec = 0; | 2616 | inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec = inode->i_mtime.tv_nsec = 0; |
2618 | 2617 | ||
2619 | ei->i_state = 0; | 2618 | ei->i_state = 0; |
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index e7e1d79a7d75..4ec57be5baf5 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <linux/quotaops.h> | 36 | #include <linux/quotaops.h> |
37 | #include <linux/buffer_head.h> | 37 | #include <linux/buffer_head.h> |
38 | #include <linux/bio.h> | 38 | #include <linux/bio.h> |
39 | #include <linux/smp_lock.h> | ||
40 | 39 | ||
41 | #include "namei.h" | 40 | #include "namei.h" |
42 | #include "xattr.h" | 41 | #include "xattr.h" |
@@ -967,6 +966,7 @@ static struct buffer_head * ext4_dx_find_entry(struct dentry *dentry, | |||
967 | (block<<EXT4_BLOCK_SIZE_BITS(sb)) | 966 | (block<<EXT4_BLOCK_SIZE_BITS(sb)) |
968 | +((char *)de - bh->b_data))) { | 967 | +((char *)de - bh->b_data))) { |
969 | brelse (bh); | 968 | brelse (bh); |
969 | *err = ERR_BAD_DX_DIR; | ||
970 | goto errout; | 970 | goto errout; |
971 | } | 971 | } |
972 | *res_dir = de; | 972 | *res_dir = de; |
@@ -1132,9 +1132,9 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, | |||
1132 | char *data1 = (*bh)->b_data, *data2; | 1132 | char *data1 = (*bh)->b_data, *data2; |
1133 | unsigned split; | 1133 | unsigned split; |
1134 | struct ext4_dir_entry_2 *de = NULL, *de2; | 1134 | struct ext4_dir_entry_2 *de = NULL, *de2; |
1135 | int err; | 1135 | int err = 0; |
1136 | 1136 | ||
1137 | bh2 = ext4_append (handle, dir, &newblock, error); | 1137 | bh2 = ext4_append (handle, dir, &newblock, &err); |
1138 | if (!(bh2)) { | 1138 | if (!(bh2)) { |
1139 | brelse(*bh); | 1139 | brelse(*bh); |
1140 | *bh = NULL; | 1140 | *bh = NULL; |
@@ -1143,14 +1143,9 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, | |||
1143 | 1143 | ||
1144 | BUFFER_TRACE(*bh, "get_write_access"); | 1144 | BUFFER_TRACE(*bh, "get_write_access"); |
1145 | err = ext4_journal_get_write_access(handle, *bh); | 1145 | err = ext4_journal_get_write_access(handle, *bh); |
1146 | if (err) { | 1146 | if (err) |
1147 | journal_error: | 1147 | goto journal_error; |
1148 | brelse(*bh); | 1148 | |
1149 | brelse(bh2); | ||
1150 | *bh = NULL; | ||
1151 | ext4_std_error(dir->i_sb, err); | ||
1152 | goto errout; | ||
1153 | } | ||
1154 | BUFFER_TRACE(frame->bh, "get_write_access"); | 1149 | BUFFER_TRACE(frame->bh, "get_write_access"); |
1155 | err = ext4_journal_get_write_access(handle, frame->bh); | 1150 | err = ext4_journal_get_write_access(handle, frame->bh); |
1156 | if (err) | 1151 | if (err) |
@@ -1193,8 +1188,16 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, | |||
1193 | goto journal_error; | 1188 | goto journal_error; |
1194 | brelse (bh2); | 1189 | brelse (bh2); |
1195 | dxtrace(dx_show_index ("frame", frame->entries)); | 1190 | dxtrace(dx_show_index ("frame", frame->entries)); |
1196 | errout: | ||
1197 | return de; | 1191 | return de; |
1192 | |||
1193 | journal_error: | ||
1194 | brelse(*bh); | ||
1195 | brelse(bh2); | ||
1196 | *bh = NULL; | ||
1197 | ext4_std_error(dir->i_sb, err); | ||
1198 | errout: | ||
1199 | *error = err; | ||
1200 | return NULL; | ||
1198 | } | 1201 | } |
1199 | #endif | 1202 | #endif |
1200 | 1203 | ||
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index ea99f6c97f56..aa11d7dbe970 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #define EXT4FS_DEBUG | 12 | #define EXT4FS_DEBUG |
13 | 13 | ||
14 | #include <linux/smp_lock.h> | ||
15 | #include <linux/ext4_jbd2.h> | 14 | #include <linux/ext4_jbd2.h> |
16 | 15 | ||
17 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
diff --git a/fs/ext4/xattr_security.c b/fs/ext4/xattr_security.c index b6a6861951f9..f17eaf2321b9 100644 --- a/fs/ext4/xattr_security.c +++ b/fs/ext4/xattr_security.c | |||
@@ -6,7 +6,6 @@ | |||
6 | #include <linux/module.h> | 6 | #include <linux/module.h> |
7 | #include <linux/string.h> | 7 | #include <linux/string.h> |
8 | #include <linux/fs.h> | 8 | #include <linux/fs.h> |
9 | #include <linux/smp_lock.h> | ||
10 | #include <linux/ext4_jbd2.h> | 9 | #include <linux/ext4_jbd2.h> |
11 | #include <linux/ext4_fs.h> | 10 | #include <linux/ext4_fs.h> |
12 | #include <linux/security.h> | 11 | #include <linux/security.h> |
diff --git a/fs/ext4/xattr_trusted.c b/fs/ext4/xattr_trusted.c index b76f2dbc82da..e0f05acdafec 100644 --- a/fs/ext4/xattr_trusted.c +++ b/fs/ext4/xattr_trusted.c | |||
@@ -9,7 +9,6 @@ | |||
9 | #include <linux/string.h> | 9 | #include <linux/string.h> |
10 | #include <linux/capability.h> | 10 | #include <linux/capability.h> |
11 | #include <linux/fs.h> | 11 | #include <linux/fs.h> |
12 | #include <linux/smp_lock.h> | ||
13 | #include <linux/ext4_jbd2.h> | 12 | #include <linux/ext4_jbd2.h> |
14 | #include <linux/ext4_fs.h> | 13 | #include <linux/ext4_fs.h> |
15 | #include "xattr.h" | 14 | #include "xattr.h" |
diff --git a/fs/ext4/xattr_user.c b/fs/ext4/xattr_user.c index c53cded0761a..7ed3d8ebf096 100644 --- a/fs/ext4/xattr_user.c +++ b/fs/ext4/xattr_user.c | |||
@@ -8,7 +8,6 @@ | |||
8 | #include <linux/module.h> | 8 | #include <linux/module.h> |
9 | #include <linux/string.h> | 9 | #include <linux/string.h> |
10 | #include <linux/fs.h> | 10 | #include <linux/fs.h> |
11 | #include <linux/smp_lock.h> | ||
12 | #include <linux/ext4_jbd2.h> | 11 | #include <linux/ext4_jbd2.h> |
13 | #include <linux/ext4_fs.h> | 12 | #include <linux/ext4_fs.h> |
14 | #include "xattr.h" | 13 | #include "xattr.h" |