diff options
| author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-04 22:33:45 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-04 22:33:45 -0500 |
| commit | 651857a1ecaf97a8ad9d324dd2a61675c53e541e (patch) | |
| tree | f5b7e4915b25ae6910ede2bf37614ca98ab4f6e5 /fs/ocfs2/ioctl.c | |
| parent | ee28b0da1069ced1688aa9d0b7b378353b988321 (diff) | |
| parent | d38eb8db6aa359c060dfb72a29cf8d94a96657d8 (diff) | |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2: (31 commits)
ocfs2: implement i_op->permission
configfs: make configfs_dirent_exists() static
ocfs2: update file system paths to set atime
ocfs2: core atime update functions
ocfs2: Add splice support
ocfs2: Remove ocfs2_write_should_remove_suid()
[PATCH] Export should_remove_suid()
configfs: mutex_lock_nested() fix
ocfs2: Remove struct ocfs2_journal_handle in favor of handle_t
ocfs2: remove handle argument to ocfs2_start_trans()
ocfs2: remove ocfs2_journal_handle journal field
ocfs2: pass ocfs2_super * into ocfs2_commit_trans()
ocfs2: remove unused handle argument from ocfs2_meta_lock_full()
ocfs2: make ocfs2_alloc_handle() static
ocfs2: remove unused ocfs2_handle_add_lock()
ocfs2: remove unused ocfs2_handle_add_inode()
ocfs2: Don't allocate handle early in ocfs2_rename()
ocfs2: don't use handle for locking in allocation functions
ocfs2: don't pass handle to ocfs2_meta_lock in ocfs2_rename()
ocfs2: don't pass handle to ocfs2_meta_lock in ocfs2_symlink()
...
Diffstat (limited to 'fs/ocfs2/ioctl.c')
| -rw-r--r-- | fs/ocfs2/ioctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c index 3663cef80689..4768be5f3086 100644 --- a/fs/ocfs2/ioctl.c +++ b/fs/ocfs2/ioctl.c | |||
| @@ -26,7 +26,7 @@ static int ocfs2_get_inode_attr(struct inode *inode, unsigned *flags) | |||
| 26 | { | 26 | { |
| 27 | int status; | 27 | int status; |
| 28 | 28 | ||
| 29 | status = ocfs2_meta_lock(inode, NULL, NULL, 0); | 29 | status = ocfs2_meta_lock(inode, NULL, 0); |
| 30 | if (status < 0) { | 30 | if (status < 0) { |
| 31 | mlog_errno(status); | 31 | mlog_errno(status); |
| 32 | return status; | 32 | return status; |
| @@ -43,14 +43,14 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags, | |||
| 43 | { | 43 | { |
| 44 | struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); | 44 | struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); |
| 45 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 45 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
| 46 | struct ocfs2_journal_handle *handle = NULL; | 46 | handle_t *handle = NULL; |
| 47 | struct buffer_head *bh = NULL; | 47 | struct buffer_head *bh = NULL; |
| 48 | unsigned oldflags; | 48 | unsigned oldflags; |
| 49 | int status; | 49 | int status; |
| 50 | 50 | ||
| 51 | mutex_lock(&inode->i_mutex); | 51 | mutex_lock(&inode->i_mutex); |
| 52 | 52 | ||
| 53 | status = ocfs2_meta_lock(inode, NULL, &bh, 1); | 53 | status = ocfs2_meta_lock(inode, &bh, 1); |
| 54 | if (status < 0) { | 54 | if (status < 0) { |
| 55 | mlog_errno(status); | 55 | mlog_errno(status); |
| 56 | goto bail; | 56 | goto bail; |
| @@ -67,7 +67,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags, | |||
| 67 | if (!S_ISDIR(inode->i_mode)) | 67 | if (!S_ISDIR(inode->i_mode)) |
| 68 | flags &= ~OCFS2_DIRSYNC_FL; | 68 | flags &= ~OCFS2_DIRSYNC_FL; |
| 69 | 69 | ||
| 70 | handle = ocfs2_start_trans(osb, NULL, OCFS2_INODE_UPDATE_CREDITS); | 70 | handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); |
| 71 | if (IS_ERR(handle)) { | 71 | if (IS_ERR(handle)) { |
| 72 | status = PTR_ERR(handle); | 72 | status = PTR_ERR(handle); |
| 73 | mlog_errno(status); | 73 | mlog_errno(status); |
| @@ -96,7 +96,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags, | |||
| 96 | if (status < 0) | 96 | if (status < 0) |
| 97 | mlog_errno(status); | 97 | mlog_errno(status); |
| 98 | 98 | ||
| 99 | ocfs2_commit_trans(handle); | 99 | ocfs2_commit_trans(osb, handle); |
| 100 | bail_unlock: | 100 | bail_unlock: |
| 101 | ocfs2_meta_unlock(inode, 1); | 101 | ocfs2_meta_unlock(inode, 1); |
| 102 | bail: | 102 | bail: |
