diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 14:34:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 14:34:40 -0400 |
commit | 2ac232f37fa0e8551856a575fe299c47b65b4d66 (patch) | |
tree | 58ff15ecdbc383415a82ea678e5191db16a479f3 /fs/ext3/namei.c | |
parent | fa8f53ace4af9470d8414427cb3dc3c0ffc4f182 (diff) | |
parent | 5cf49d763eb141d236e92be6d4a0dc94e31fa886 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
jbd: change the field "b_cow_tid" of struct journal_head from type unsigned to tid_t
ext3.txt: update the links in the section "useful links" to the latest ones
ext3: Fix data corruption in inodes with journalled data
ext2: check xattr name_len before acquiring xattr_sem in ext2_xattr_get
ext3: Fix compilation with -DDX_DEBUG
quota: Remove unused declaration
jbd: Use WRITE_SYNC in journal checkpoint.
jbd: Fix oops in journal_remove_journal_head()
ext3: Return -EINVAL when start is beyond the end of fs in ext3_trim_fs()
ext3/ioctl.c: silence sparse warnings about different address spaces
ext3/ext4 Documentation: remove bh/nobh since it has been deprecated
ext3: Improve truncate error handling
ext3: use proper little-endian bitops
ext2: include fs.h into ext2_fs.h
ext3: Fix oops in ext3_try_to_allocate_with_rsv()
jbd: fix a bug of leaking jh->b_jcount
jbd: remove dependency on __GFP_NOFAIL
ext3: Convert ext3 to new truncate calling convention
jbd: Add fixed tracepoints
ext3: Add fixed tracepoints
Resolve conflicts in fs/ext3/fsync.c due to fsync locking push-down and
new fixed tracepoints.
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r-- | fs/ext3/namei.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 3b57230a17bb..6e18a0b7750d 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -36,6 +36,7 @@ | |||
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 <trace/events/ext3.h> | ||
39 | 40 | ||
40 | #include "namei.h" | 41 | #include "namei.h" |
41 | #include "xattr.h" | 42 | #include "xattr.h" |
@@ -287,7 +288,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_ent | |||
287 | while (len--) printk("%c", *name++); | 288 | while (len--) printk("%c", *name++); |
288 | ext3fs_dirhash(de->name, de->name_len, &h); | 289 | ext3fs_dirhash(de->name, de->name_len, &h); |
289 | printk(":%x.%u ", h.hash, | 290 | printk(":%x.%u ", h.hash, |
290 | ((char *) de - base)); | 291 | (unsigned) ((char *) de - base)); |
291 | } | 292 | } |
292 | space += EXT3_DIR_REC_LEN(de->name_len); | 293 | space += EXT3_DIR_REC_LEN(de->name_len); |
293 | names++; | 294 | names++; |
@@ -1013,7 +1014,7 @@ static struct buffer_head * ext3_dx_find_entry(struct inode *dir, | |||
1013 | 1014 | ||
1014 | *err = -ENOENT; | 1015 | *err = -ENOENT; |
1015 | errout: | 1016 | errout: |
1016 | dxtrace(printk("%s not found\n", name)); | 1017 | dxtrace(printk("%s not found\n", entry->name)); |
1017 | dx_release (frames); | 1018 | dx_release (frames); |
1018 | return NULL; | 1019 | return NULL; |
1019 | } | 1020 | } |
@@ -2140,6 +2141,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry) | |||
2140 | struct ext3_dir_entry_2 * de; | 2141 | struct ext3_dir_entry_2 * de; |
2141 | handle_t *handle; | 2142 | handle_t *handle; |
2142 | 2143 | ||
2144 | trace_ext3_unlink_enter(dir, dentry); | ||
2143 | /* Initialize quotas before so that eventual writes go | 2145 | /* Initialize quotas before so that eventual writes go |
2144 | * in separate transaction */ | 2146 | * in separate transaction */ |
2145 | dquot_initialize(dir); | 2147 | dquot_initialize(dir); |
@@ -2185,6 +2187,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry) | |||
2185 | end_unlink: | 2187 | end_unlink: |
2186 | ext3_journal_stop(handle); | 2188 | ext3_journal_stop(handle); |
2187 | brelse (bh); | 2189 | brelse (bh); |
2190 | trace_ext3_unlink_exit(dentry, retval); | ||
2188 | return retval; | 2191 | return retval; |
2189 | } | 2192 | } |
2190 | 2193 | ||