search for: mnt_want_write

Displaying 9 results from an estimated 9 matches for "mnt_want_write".

2008 Dec 11
0
[PATCH] btrfs: mnt_drop_write in ioctl_trans_end
Add missing mnt_drop_write to match the mnt_want_write in btrfs_ioctl_trans_start. Signed-off-by: Sage Weil <sage@newdream.net> --- fs/btrfs/ioctl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 6228b69..69c4a07 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1059,6...
2009 Jun 13
1
[PATCH 1/3] Add ioctl to set per file 'compress' flag
...ans; + int ret; + + if (!is_owner_or_cap(inode)) + return -EACCES; + + mutex_lock(&inode->i_mutex); + + /* Bail out if already set / cleared. */ + if (set) { + if (ip->flags & flag) + goto out_unlock; + } else { + if (!(ip->flags & flag)) + goto out_unlock; + } + + ret = mnt_want_write(file->f_path.mnt); + if (ret) + goto out_unlock; + + if (set) + ip->flags |= flag; + else + ip->flags &= ~flag; + + trans = btrfs_join_transaction(root, 1); + BUG_ON(!trans); + + ret = btrfs_update_inode(trans, root, inode); + BUG_ON(ret); + + inode->i_ctime = CURRENT_TIME; + btr...
2009 Feb 11
1
Possible lock inversion in directory locking
...ff80467e1f>] __down_write_nested+0x17/0xa3 [<ffffffffa0300719>] ocfs2_journal_access_di+0x0/0xf [ocfs2] [<ffffffffa02e377e>] ocfs2_write_begin+0x10d/0x1c0 [ocfs2] [<ffffffff802608a9>] generic_file_buffered_write+0x132/0x2ee [<ffffffff8029ac8a>] mnt_want_write+0x10/0x80 [<ffffffff80260f50>] __generic_file_aio_write_nolock+0x34c/0x380 [<ffffffff8026162b>] generic_file_aio_write_nolock+0x33/0x7f [<ffffffffa02f4a43>] ocfs2_file_aio_write+0x438/0x558 [ocfs2] [<ffffffff80286e7a>] do_sync_write+0xce/0x113...
2013 Jun 10
1
btrfs-cleaner Blocked on xfstests 068
...<ffffffff8110bca6>] ? complete_walk+0x92/0xda [ 413.409157] [<ffffffff8161e3e4>] schedule+0x64/0x66 [ 413.409157] [<ffffffff8110525c>] __sb_start_write+0x9a/0xf0 [ 413.409157] [<ffffffff8104e2d7>] ? remove_wait_queue+0x3a/0x3a [ 413.409157] [<ffffffff8111bf5d>] mnt_want_write+0x24/0x4b [ 413.409157] [<ffffffff8110e5dd>] kern_path_create+0x6d/0x13f [ 413.409157] [<ffffffff810f7fdc>] ? kmem_cache_alloc+0x31/0xf8 [ 413.409157] [<ffffffff8110cb01>] ? getname_flags+0x74/0x158 [ 413.409157] [<ffffffff8110e6ee>] user_path_create+0x3f/0x57 [ 413...
2009 Nov 10
12
[RFC] big fat transaction ioctl
...t;d_inode)->root; + struct btrfs_trans_handle *trans; + struct btrfs_ioctl_usertrans ut, *orig_ut = arg; + u64 ops_completed = 0; + int ret; + + ret = -EPERM; + if (!capable(CAP_SYS_ADMIN)) + goto out; + + ret = -EFAULT; + if (copy_from_user(&ut, orig_ut, sizeof(ut))) + goto out; + + ret = mnt_want_write(file->f_path.mnt); + if (ret) + goto out; + + ret = btrfs_reserve_metadata_space(root, 5*ut.num_ops); + if (ret) + goto out_drop_write; + + mutex_lock(&root->fs_info->trans_mutex); + root->fs_info->open_ioctl_trans++; + mutex_unlock(&root->fs_info->trans_mutex); + + r...
2009 May 03
6
[RFC] The reflink(2) system call.
Hi everyone, I described the reflink operation at the Linux Storage & Filesystems Workshop last month. Originally implemented as an ocfs2-specific ioctl, the consensus was that it should be a syscall from the get-go. Here's some first-cut patches. For people who have not seen reflink, either at LSF or on the ocfs2 wiki, the first patch contains Documentation/filesystems/reflink.txt to
2009 Mar 27
42
[PATCH 00/42] ocfs2: Add reflink file support. V1
Hi all, So I have finally finished the v1 of reflink for ocfs2. It has some bugs that I am still investigating, but the schema is almost there. So I'd like to send it out first for review. And Tristan and I will continue to work on the stability of the code. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please
2009 Apr 03
42
[PATCH 00/42] ocfs2: Add reflink file support. V2
Hi all, Change from v1 to v2: bug fix and metadata/credits reservation improvement. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/RefcountTrees http://oss.oracle.com/osswiki/OCFS2/DesignDocs/ReflinkOperation
2009 Apr 30
42
[PATCH 00/39] ocfs2: Add reflink file support. V3
Hi all, So I have finally finished the v3 of reflink for ocfs2. The biggest change is that we support 64bit cluster offset now(Thank Mark and Joel for it). [View] http://oss.oracle.com/git/?p=tma/linux-2.6.git;a=shortlog;h=refcount [Pull] git://oss.oracle.com/git/tma/linux-2.6.git refcount The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.