Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: create new special files only in first branch
When creating a new special file, always create it in the first branch,
which is always writeable, not in the branch which may have a whiteout in
it. This makes the policy for the creation of new special files consistent
with that of new files/directories, as well as improves efficiency a bit.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: initialize inode times for reused inodes
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: interpose cleanup and fix for spliced dentries
Fix unionfs_interpose to fill lower inode info when d_splice_alias returns
NULL. Also cleanup impossible case (d_splice_alias doesn't return ERR_PTR).
Signed-off-by: Rachita Kothiyal <rachita@fsl.cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Fri, 28 Dec 2007 19:08:39 +0000 (14:08 -0500)]
Unionfs: clarify usage.txt read/write behavior
CC: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: use locking around i_size_write in 32-bit systems
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Hugh Dickins [Tue, 25 Dec 2007 22:38:35 +0000 (17:38 -0500)]
VFS/fs_stack: use locking around i_size_write in 32-bit systems
LTP's iogen01 doio tests hang nicely on 32-bit SMP when /tmp is a unionfs
mount of a tmpfs. See the comment on i_size_write in linux/fs.h: it needs
to be locked, otherwise i_size_read can spin forever waiting for a lost
seqcount update.
Most filesystems are already holding i_mutex for this, but unionfs calls
fsstack_copy_inode_size from many places, not necessarily holding i_mutex.
Use the low-level i_lock within fsstack_copy_inode_size when 32-bit SMP.
Checked the entire unionfs code to ensure this is the right fix for
i_size_write().
Also compared to what other file systems do when they have to handle inodes,
esp. not their own inodes (e.g., network file systems have to access the
exported file system's inodes). Found out that most such file systems not just
don't lock around i_size_write, but they don't even use i_size_read or
i_size_write to access the inode's size.
CC: Mike Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: clarify usage.txt mount options
CC: Jim Kissel <jlk@osml.eu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 25 Dec 2007 22:05:33 +0000 (17:05 -0500)]
Unionfs: avoid using drop_pagecache_sb in remount
Exporting drop_pagecache_sb to modules is somewhat risky because one cannot
sleep inside invalidate_mapping_pages. This could cause a lot of latency in
the pre-emption code. So don't export this symbol to minimize the risk that
others will use it.
Instead, unionfs will try to directly invalidate as many pages it can from
the unionfs_remount code. Invalidating those inode pages is not strictly
required, but helpful in encouraging a revalidation of inodes sooner than
waiting for individual f/s ops to access the union. Since a remount is
already an expensive but rare operation, this inode pages invalidation
shouldn't add too much overhead.
CC: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sat, 8 Dec 2007 18:48:03 +0000 (13:48 -0500)]
Unionfs: release 2.1.11
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sat, 8 Dec 2007 18:25:22 +0000 (13:25 -0500)]
Unionfs: reduce the amount of cache-coherency debugging messages
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sat, 8 Dec 2007 18:15:03 +0000 (13:15 -0500)]
Unionfs: cleanup/consolidate branch-mode parsing code
Also a bug fix: disallow unrecognized branch modes at mount time, instead of
defaulting to "rw".
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 27 Nov 2007 00:16:22 +0000 (19:16 -0500)]
Unionfs: call wait_on_page_writeback before clear_page_dirty_for_io
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 26 Nov 2007 03:40:49 +0000 (22:40 -0500)]
Unionfs: release 2.1.10
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:35:53 +0000 (18:35 -0500)]
Unionfs: use generic_file_aio_read/write
There's no apparent need to define our own aio_read/write methods.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: update our inode size correctly upon partial write
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: prevent multiple writers to lower_page
Without this patch, the LTP fs test "rwtest04" triggers a
BUG_ON(PageWriteback(page)) in fs/buffer.c:1706.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: support splice(2)
Also remove redundant variable from unionfs_readpage (saves a bit on stack
space).
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: reintroduce a bmap method
This is needed for swapon(2) files in the union.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: update times in setattr
Needed to maintain Unix semantics via utimes(2).
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 26 Nov 2007 04:05:05 +0000 (23:05 -0500)]
Unionfs: create opaque directories' whiteouts unconditionally
Needed to maintain Unix semantics (LTP testing).
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:34:36 +0000 (18:34 -0500)]
Unionfs: don't create whiteouts on rightmost branch
If we are unlinking/rmdir'ing an object on the rightmost branch, there's no
need to create a whiteout there: this saves on storage space and inodes.
Also, in the (degenerate) case of having only one branch, this really saves
on whiteouts.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: release lower resources on successful rmdir
This patch prevents those resources from lingering around until memory
pressure would have forced them out. The patch also properly handles
directories that have been rmdir'ed which are still some process's cwd.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: remove useless debugging messages
These are considered normal behaviour, they don't really reveal any insight
to the person debugging the code, and they tend to clutter console messages.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: handle whiteouts more efficiently in filldir
If we cache a dirent for file "foo", and then it gets deleted, then we look
for a ".wh.foo" whiteout entry in the same dirent cache. But our dirent
cache strips the ".wh." prefix, thus looking for an entry named "foo" whose
filldir_node->whiteout should be 1 instead of 0. In that case, don't
display an incorrect printk message that the file system may be corrupt,
but set that filldir_node->whiteout to 1.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: set lower mnt after mkdir which resulted in copyup
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: minor cleanup in the debugging infrastructure
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: minor coding standards applied
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Hugh Dickins [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: minor cleanup in writepage
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: use f_path instead of f_dentry/mnt
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 25 Nov 2007 23:32:31 +0000 (18:32 -0500)]
Unionfs: cleaner support for RT patches
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 03:55:44 +0000 (22:55 -0500)]
Unionfs: release 2.1.9
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 03:29:06 +0000 (22:29 -0500)]
Unionfs: move debugging checks inside locks
This is to ensure that the objects we want to check aren't being destroyed
or changed by another thread.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: fold do_readpage into unionfs_readpage
Simplify the code and reduce stack pressure a bit.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: remove unnecessary lower atime updates
No need for this because our readpage calls vfs_read on the lower objects,
which would update the atime as/if needed.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: debugging updates
Don't perform dentry+inode checks unless both are valid.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: clear partial read in readpage
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:47:24 +0000 (20:47 -0500)]
Unionfs: writepage updates
Don't set/reset the PageUptodate flag on our page. Call flush_dcache_page
on the lower page after copy_highpage, and set it uptodate. Call
set_page_dirty right before clear_page_dirty_for_io.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: update cache-coherency detection heuristics
Use a small delay to reduce the number of times unionfs has to detect
changed mtime's/ctime's, and also reduce the potential for false positives.
See Documentation/filesystems/unionfs/concepts.txt for a detailed
discussion.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: use i_size wrappers
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Tue, 13 Nov 2007 01:45:43 +0000 (20:45 -0500)]
Unionfs: flush and release updates
Remove the totalopens counter which was intended to reduce unnecessary
processing of d_deleted dentries. Move that processing from file_release to
flush.
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Fri, 2 Nov 2007 23:45:57 +0000 (19:45 -0400)]
Unionfs: release 2.1.8
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 1 Nov 2007 05:38:09 +0000 (01:38 -0400)]
Unionfs: don't printk an error if it's due to common copyup
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 1 Nov 2007 04:41:03 +0000 (00:41 -0400)]
Unionfs: don't bother validating inode if it has no lower branches
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 1 Nov 2007 00:33:46 +0000 (20:33 -0400)]
Unionfs: avoid a deadlock during branch-management on a pivot_root'ed union
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 1 Nov 2007 00:35:29 +0000 (20:35 -0400)]
Unionfs: mmap updates
Rewrite unionfs_writepage to minimize dependence on AOP_WRITEPAGE_ACTIVEATE,
handle memory pressure better, and update documentation. Remove
unionfs_sync_page because it's not needed.
CC: Hugh Dickins <hugh@veritas.com>
CC: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 28 Oct 2007 05:34:54 +0000 (01:34 -0400)]
Unionfs: update usage.txt documention
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Fri, 2 Nov 2007 00:33:12 +0000 (20:33 -0400)]
Unionfs: cleanup permission checking code
Use vfs helpers and avoid redundant checks performed by the VFS already.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 28 Oct 2007 05:34:54 +0000 (01:34 -0400)]
Unionfs: delete whiteouts in sticky directories
This is needed to maintain Unix semantics.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 28 Oct 2007 05:34:54 +0000 (01:34 -0400)]
Unionfs: update mmap documentation for unionfs_writepage
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Fri, 19 Oct 2007 00:14:04 +0000 (20:14 -0400)]
Unionfs: release 2.1.7
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 21 Oct 2007 20:10:59 +0000 (16:10 -0400)]
Unionfs: remove obsolete #define and comment
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 18 Oct 2007 18:03:16 +0000 (14:03 -0400)]
Unionfs: convert a printk to pr_debug in release
This is mostly an informational message, not an error.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Wed, 17 Oct 2007 21:35:02 +0000 (17:35 -0400)]
Unionfs: don't bother validating dentry if it has no lower branches
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Wed, 17 Oct 2007 20:37:51 +0000 (16:37 -0400)]
Unionfs: don't printk trivial message upon normal rename-copyup
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 18 Oct 2007 23:20:58 +0000 (19:20 -0400)]
Unionfs: support lower filesystems without writeback capability
Implement unionfs_writepages. As per
mm/filemap.c:__filemap_fdatawrite_range(), don't call our writepage if the
lower mapping has BDI_CAP_NO_WRITEBACK capability set.
Signed-off-by: Pekka J Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 19:04:53 +0000 (15:04 -0400)]
Unionfs: release 2.1.6
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 18:58:54 +0000 (14:58 -0400)]
Unionfs: coding style: avoid lines longer than 80 chars
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 18:59:03 +0000 (14:59 -0400)]
Unionfs: coding style: miscellaneous fixes
No braces around single-statement if's.
No externs in .c files.
use <linux/mman.h> not <asm/mman.h>.
Use (foo *) not (foo*).
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: coding style: avoid multiple assignments on same line
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: coding style: take assignments out of "if" conditions
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 18:59:54 +0000 (14:59 -0400)]
Unionfs: coding style: proper spacing
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: use braces in both branches of conditionals
As per CodingStyle, if one branch of an if-then-else has braces because it
has multiple statements, then the other branch should have braces too, even
if the other branch has only one statement in it.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: remove periods from the end of printk strings
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: update/assign a KERN_* level to all printk statements
Also use pr_info() instead of printk(KERN_INFO ...)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: add missing newlines in printk's
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: convert all appropriate printk's to pr_debug calls
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: use pr_debug() instead of custom dprintk()
Also turn on DEBUG if CONFIG_UNION_FS_DEBUG is on
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: use page_offset() helper
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: remove unnecessary if condition
The condition is always true there.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: properly indent static struct
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: use UNIONFS_NAME macro
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: use consistent printk prefixes
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: minor comment cleanups
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: compile if debug is off
Signed-of-by: John Johansen <jjohansen@suse.de>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
patch unionfs_undo_unnecessary_unlikely_calls
Erez Zadok [Sun, 30 Sep 2007 04:13:35 +0000 (00:13 -0400)]
Unionfs: display informational messages only if debug is on
This is to avoid filling the console/logs with messages that are primarily
of debugging use.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Acked-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Erez Zadok [Wed, 26 Sep 2007 02:40:22 +0000 (22:40 -0400)]
Unionfs: release 2.1.5
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Wed, 26 Sep 2007 02:14:43 +0000 (22:14 -0400)]
Unionfs: use poison.h for safe poison pointers
This also fixes a compile warning on 64-bit systems.
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on xattr ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 06:03:33 +0000 (02:03 -0400)]
Unionfs: add un/likely conditionals on unlink ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:52:04 +0000 (01:52 -0400)]
Unionfs: add un/likely conditionals on common subr
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on readdir ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:51:02 +0000 (01:51 -0400)]
Unionfs: add un/likely conditionals on rename ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:57:45 +0000 (01:57 -0400)]
Unionfs: add un/likely conditionals on mmap ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:49:41 +0000 (01:49 -0400)]
Unionfs: add un/likely conditionals on super ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:48:33 +0000 (01:48 -0400)]
Unionfs: add un/likely conditionals on lookup ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:48:55 +0000 (01:48 -0400)]
Unionfs: add un/likely conditionals on inode ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on fileops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on headers
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:14 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on dir ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:45:05 +0000 (01:45 -0400)]
Unionfs: add un/likely conditionals on dentry ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:42:01 +0000 (01:42 -0400)]
Unionfs: add un/likely conditionals on debug ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:41:31 +0000 (01:41 -0400)]
Unionfs: add un/likely conditionals on copyup ops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 05:09:41 +0000 (01:09 -0400)]
Unionfs: add un/likely conditionals on common fileops
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Mon, 24 Sep 2007 04:17:36 +0000 (00:17 -0400)]
Unionfs: minor coding style updates
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez Zadok [Thu, 20 Sep 2007 22:35:17 +0000 (18:35 -0400)]
Unionfs: cast page->index loff_t before shifting
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez_Zadok [Thu, 20 Sep 2007 04:14:46 +0000 (00:14 -0400)]
Unionfs: release 2.1.4
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez_Zadok [Thu, 20 Sep 2007 03:55:27 +0000 (23:55 -0400)]
Unionfs: cache-coherency fixes
Do not update mtime if there is no upper branch for the inode. This
prevents from calling unionfs_lower_inode_idx() with a negative index, which
triggers a bug.
Signed-off-by: Olivier Blin <blino@mandriva.com>
Acked-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez_Zadok [Thu, 20 Sep 2007 04:59:05 +0000 (00:59 -0400)]
Unionfs: display informational messages only if debug is on
This is to avoid filling the console/logs with messages that are primarily
of debugging use.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Erez_Zadok [Thu, 20 Sep 2007 03:55:27 +0000 (23:55 -0400)]
Unionfs: use int in unionfs_d_revalidate
We have to use an int, even though unionfs_d_revalidate calls other routines
that return only true/false, b/c ->d_revalidate is allowed to return a
negative errno number.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>