search for: file_update_tim

Displaying 13 results from an estimated 13 matches for "file_update_tim".

Did you mean: file_update_time
2011 Nov 29
3
[PATCH] fs: push file_update_time into ->page_mkwrite
The fault code has been calling file_update_time after ->page_mkwrite after it drops the page lock, but this is annoying because this calls mark_inode_dirty which can fail in Btrfs, so we want to be able to do these updates in ->page_mkwrite so we can get an error back to the user. So get rid of the file_update_time calls in the fault cod...
2009 Jul 06
2
[Patch] btrfs: use file_remove_suid() after i_mutex is held
file_remove_suid() should be called with i_mutex held, file_update_time() 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...
2009 Jul 06
1
[Patch v3] btrfs: use file_remove_suid() after i_mutex is held
V2 -> V3: set ''err'' to -ENOMEM when kmalloc() fails. Thanks to Tao. V1 -> V2: Move kmalloc() before mutex_lock(), suggested by Arjan. file_remove_suid() should be called with i_mutex held, file_update_time() too. So move them after mutex_lock(). Plus, check the return value of kmalloc(). Signed-off-by: WANG Cong <amwang@redhat.com> Cc: Arjan <arjan@infradead.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: Yan Zheng <zheng.yan@oracle.com> Cc: Sven Wegener <sven.wegener@...
2009 Jul 06
2
[Patch v2] btrfs: use file_remove_suid() after i_mutex is held
V1 -> V2: Move kmalloc() before mutex_lock(), suggested by Arjan. file_remove_suid() should be called with i_mutex held, file_update_time() too. So move them after mutex_lock(). Plus, check the return value of kmalloc(). Signed-off-by: WANG Cong <amwang@redhat.com> Cc: Arjan <arjan@infradead.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: Yan Zheng <zheng.yan@oracle.com> Cc: Sven Wegener <sven.wegener@...
2013 Apr 06
1
[PATCH 3/4] fsfreeze: manage kill signal when sb_start_pagefault is called
..._mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) u64 page_start; u64 page_end; - sb_start_pagefault(inode->i_sb); + ret = sb_start_pagefault(inode->i_sb); + if (ret) + return VM_FAULT_RETRY; ret = btrfs_delalloc_reserve_space(inode, PAGE_CACHE_SIZE); if (!ret) { ret = file_update_time(vma->vm_file); diff --git a/fs/buffer.c b/fs/buffer.c index b4dcb34..6d3d2cc 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -2383,7 +2383,9 @@ int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, int ret; struct super_block *sb = file_inode(vma->vm_file)->i_sb; -...
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
2016 Jan 15
0
freshclam: page allocation failure: order:0, mode:0x2204010
...find_get_entry+0x5/0x240 [<ffffffff811e5704>] pagecache_get_page+0x84/0x200 [<ffffffff811e5aa9>] grab_cache_page_write_begin+0x29/0x40 [<ffffffff8131ca80>] ext4_da_write_begin+0xd0/0x3d0 [<ffffffff811e42f1>] generic_perform_write+0xd1/0x1e0 [<ffffffff8129484f>] ? file_update_time+0x5f/0x110 [<ffffffff811e7042>] __generic_file_write_iter+0x1a2/0x1e0 [<ffffffff81310a12>] ext4_file_write_iter+0x102/0x480 [<ffffffff810268b9>] ? sched_clock+0x9/0x10 [<ffffffff812760dc>] __vfs_write+0xcc/0x110 [<ffffffff8127677c>] vfs_write+0xac/0x1a0 [<fff...
2008 Feb 06
1
[PATCH 1/4] btrfs: Add workaround for AppArmor changing remove_suid() prototype
...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----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHqjFULPWxlyuTD7IRAjYNAJ9uu2XWE53iko+eo+ypr2wGX4yC7wCgojK5 tJLnHFkKZEe70yv1Zl9R7UA= =rE/4 -----END PGP SIGNATURE-----
2016 Apr 13
3
Bug#820862: xen-hypervisor-4.4-amd64: Xen VM on Jessie freezes often with INFO: task jbd2/xvda2-8:111 blocked for more than 120 seconds
...79b>] ? ext4_dirty_inode+0x3b/0x60 [ext4] [ 1200.060558] [<ffffffff811cf682>] ? __mark_inode_dirty+0x172/0x270 [ 1200.060563] [<ffffffff811c1f41>] ? update_time+0x81/0xc0 [ 1200.060568] [<ffffffff8106b432>] ? current_fs_time+0x12/0x60 [ 1200.060572] [<ffffffff811c2140>] ? file_update_time+0x80/0xd0 [ 1200.060576] [<ffffffff8113f352>] ? __generic_file_write_iter+0x132/0x340 ------------------------------------------------------------------------------------------------- * What exactly did you do (or not do) that was effective (or ineffective)? I changed the va...
2011 Jul 08
5
btrfs hang in flush-btrfs-5
Hi - I''m trying btrfs with kernel 2.6.38.8-32.fc15.x86_64 (a Fedora kernel). I''m just doing a tar-to-tar copy onto the file system with compress- force=zlib. Here are some traces of the stuck processes. flush-btrfs-5 seems to be stuck: Jul 8 11:49:40 xback2 kernel: [74920.681032] flush-btrfs-5 D ffff88003c7bae60 0 11712 2 0x00000080 Jul 8 11:49:40 xback2 kernel:
2011 Jun 11
0
ext3 and btrfs various Oops and kernel BUGs
...0x7d Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff81105e62>] ? ext3_evict_inode+0x119/0x119 Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff810cd805>] __mark_inode_dirty+0x2a/0x181 Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff810c4813>] file_update_time+0xfd/0x121 Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff810832a2>] __generic_file_aio_write+0x15b/0x270 Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff8139eb86>] ? retint_kernel+0x26/0x30 Jun 10 14:50:23 mithrandir kernel: [40871.732005] [<ffffffff8108...
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
2010 Jun 03
2
Tracking down hangs
...;] :ocfs2:ocfs2_write_begin+0x112/0x1cf [79916.901243] [<ffffffff80271e7e>] generic_file_buffered_write+0x14c/0x630 [79916.901555] [<ffffffff80238b41>] current_fs_time+0x1e/0x24 [79916.901560] [<ffffffff80270c4a>] remove_suid+0x18/0x4b [79916.901564] [<ffffffff802adb7a>] file_update_time+0xb2/0xf2 [79916.901570] [<ffffffff802726a1>] __generic_file_aio_write_nolock+0x33f/0x3a9 [79916.901581] [<ffffffffa039f1f6>] :ocfs2:ocfs2_cluster_unlock+0x21d/0x289 [79916.901592] [<ffffffff80272800>] generic_file_aio_write_nolock+0x34/0x80 [79916.901605] [<ffffffffa03ada...