search for: btrfs_file_writ

Displaying 11 results from an estimated 11 matches for "btrfs_file_writ".

Did you mean: btrfs_file_write
2008 Jul 03
2
iozone remove_suid oops...
....119124] 00008003 e6439f30 d25d8000 c019cb7a e6439f30 b6c00000 e6665000 00000000 [ 899.119135] 00000000 00000000 ffffffea d490c3d4 ee2f0000 f6524580 e6665000 ffffff9c [ 899.119146] Call Trace: [ 899.119157] [<c016d44c>] remove_suid+0xc/0x50 [ 899.119172] [<f90f4689>] btrfs_file_write+0x1a9/0x900 [btrfs] [ 899.119222] [<c019cb7a>] open_namei+0x8a/0x640 [ 899.119244] [<c018ffa5>] nameidata_to_filp+0x35/0x40 [ 899.119255] [<c018fa90>] generic_file_open+0x0/0x60 [ 899.119265] [<c0190000>] do_filp_open+0x50/0x60 [ 899.119277] [<c016e56a>] __f...
2008 Jan 19
1
[bugreport] btrfs 0.11
...2f00 bfed6000 df8c2300 00000000 00000000 00000000 <0>[45260.797161] ffffffea df253558 dfa95000 df8e50e0 c0141ac0 df491f1c df491f1c 00001000 <0>[45260.803967] Call Trace: <0>[45260.806749] [<c0164d3c>] remove_suid+0xc/0x50 <0>[45260.808843] [<e0ac10b7>] btrfs_file_write+0x187/0x7c0 [btrfs] <0>[45260.815565] [<c0141ac0>] autoremove_wake_function+0x0/0x40 <0>[45260.817299] [<e0ac0f30>] btrfs_file_write+0x0/0x7c0 [btrfs] <0>[45260.819050] [<c0189919>] vfs_write+0xb9/0x170 <0>[45260.820691] [<c018a051>] sys_write+0x...
2010 May 07
6
[PATCH 1/5] fs: allow short direct-io reads to be completed via buffered IO V2
V1->V2: Check to see if our current ppos is >= i_size after a short DIO read, just in case it was actually a short read and we need to just return. This is similar to what already happens in the write case. If we have a short read while doing O_DIRECT, instead of just returning, fallthrough and try to read the rest via buffered IO. BTRFS needs this because if we encounter a compressed or
2009 Jul 06
2
[Patch] btrfs: use file_remove_suid() after i_mutex is held
...() too. So move them after mutex_lock(). Plus, check the return value of kmalloc(). Signed-off-by: WANG Cong <amwang@redhat.com> --- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 7c3cd24..cd36301 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -944,14 +944,17 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, if (count == 0) goto out_nolock; + mutex_lock(&inode->i_mutex); + err = file_remove_suid(file); if (err) - goto out_nolock; + goto out; file_update_time(file); pages = kmalloc(nrptrs * sizeof(struct page *), GFP_KERNEL); + if (!p...
2009 Jul 06
2
[Patch v2] btrfs: use file_remove_suid() after i_mutex is held
...> Cc: Sven Wegener <sven.wegener@stealer.net> Cc: Josef Bacik <jbacik@redhat.com> Cc: Jeff Mahoney <jeffm@suse.com> --- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 7c3cd24..09ef5d6 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -944,14 +944,17 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, if (count == 0) goto out_nolock; + pages = kmalloc(nrptrs * sizeof(struct page *), GFP_KERNEL); + if (!pages) + goto out_nolock; + + mutex_lock(&inode->i_mutex); + err = file_remove_suid(file); if (err) - goto out_nolock; + goto out;...
2009 Jul 06
1
[Patch v3] btrfs: use file_remove_suid() after i_mutex is held
...r@stealer.net> Cc: Josef Bacik <jbacik@redhat.com> Cc: Jeff Mahoney <jeffm@suse.com> Cc: Tao Ma <tao.ma@oracle.com> --- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 7c3cd24..e7b0d81 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -944,14 +944,19 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, if (count == 0) goto out_nolock; + pages = kmalloc(nrptrs * sizeof(struct page *), GFP_KERNEL); + if (!pages) { + err = -ENOMEM; + goto out_nolock; + } + + mutex_lock(&inode->i_mutex); + err = file_remove_suid(file); if (err) - goto o...
2008 Apr 29
26
Btrfs v0.14 Released
Hello everyone, Btrfs v0.14 is now available for download. Please note the disk format has changed, and it is not compatible with older versions of Btrfs. For downloads and documention, please see the Btrfs project page: http://btrfs.wiki.kernel.org The oss.oracle.com Btrfs project page will soon start redirecting here. v0.14 has a few performance fixes and closes some races that could have
2008 Feb 06
1
[PATCH 1/4] btrfs: Add workaround for AppArmor changing remove_suid() prototype
...-02-06 16:46:23.000000000 -0500 @@ -37,6 +37,7 @@ #include "ordered-data.h" #include "ioctl.h" #include "print-tree.h" +#include "compat.h" static int btrfs_copy_from_user(loff_t pos, int num_pages, int write_bytes, @@ -790,7 +791,11 @@ static ssize_t btrfs_file_write(struct f goto out_nolock; if (count == 0) goto out_nolock; +#ifdef REMOVE_SUID_PATH + err = remove_suid(&file->f_path); +#else err = remove_suid(fdentry(file)); +#endif if (err) goto out_nolock; file_update_time(file); - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE-...
2009 Feb 02
5
[PATCH] btrfs: call mark_inode_dirty when i_size is updated
Hi Chris. I think it is needed to call mark_inode_dirty() when file size expands in order to flush metadata updates to HDD through sync() syscall or background_writeout(). Thanks. Signed-off-by: Hisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp> diff -Nrup linux-2.6.29-rc3.org/fs/btrfs/file.c linux-2.6.29-rc3/fs/btrfs/file.c --- linux-2.6.29-rc3.org/fs/btrfs/file.c 2009-02-02
2008 Aug 05
31
Btrfs v0.16 released
Hello everyone, Btrfs v0.16 is available for download, please see http://btrfs.wiki.kernel.org/ for download links and project information. v0.16 has a shiny new disk format, and is not compatible with filesystems created by older Btrfs releases. But, it should be the fastest Btrfs yet, with a wide variety of scalability fixes and new features. There were quite a few contributors this time
2010 Mar 02
3
2.6.33 high cpu usage
With the ATI bug I was hitting earlier fixed, only my btrfs partition continues to show high cpu usage for some operations. Rsync, git pull, git checkout and svn up are typicall operations which trigger the high cpu usage. As an example, this perf report is from using git checkout to change to a new branch; the change needed to checkout 208 files out of about 1600 total files. du(1) reports