15 years agoNTFS: Remove checks for NULL before calling kfree() since kfree() does the
Jesper Juhl [Mon, 4 Apr 2005 13:59:56 +0000]
NTFS: Remove checks for NULL before calling kfree() since kfree() does the
      checking itself.  (Jesper Juhl)

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix compilation when configured read-only.
Anton Altaparmakov [Thu, 17 Mar 2005 10:51:33 +0000]
NTFS: Fix compilation when configured read-only.

- Add ifdef NTFS_RW around write specific code if fs/ntfs/runlist.[hc] and
  fs/ntfs/attrib.[hc].
- Minor bugfix to fs/ntfs/attrib.c::ntfs_attr_make_non_resident() where the
  runlist was not freed in all error cases.
- Add fs/ntfs/runlist.[hc]::ntfs_rl_find_vcn_nolock().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Include linux/swap.h in fs/ntfs/attrib.c for mark_page_accessed().
Anton Altaparmakov [Mon, 4 Apr 2005 13:59:42 +0000]
NTFS: Include linux/swap.h in fs/ntfs/attrib.c for mark_page_accessed().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Modify ->readpage and ->writepage (fs/ntfs/aops.c) so they detect
Anton Altaparmakov [Thu, 10 Mar 2005 11:06:19 +0000]
NTFS: - Modify ->readpage and ->writepage (fs/ntfs/aops.c) so they detect
        and handle the case where an attribute is converted from resident
        to non-resident by a concurrent file write.
      - Reorder some operations when converting an attribute from resident
        to non-resident (fs/ntfs/attrib.c) so it is safe wrt concurrent
        ->readpage and ->writepage.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix sign of various error return values to be negative in
Anton Altaparmakov [Wed, 9 Mar 2005 15:18:43 +0000]
NTFS: Fix sign of various error return values to be negative in
      fs/ntfs/lcnalloc.c.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Add fs/ntfs/attrib.[hc]::ntfs_attr_make_non_resident().
Anton Altaparmakov [Wed, 9 Mar 2005 15:15:06 +0000]
NTFS: Add fs/ntfs/attrib.[hc]::ntfs_attr_make_non_resident().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Fix bug in fs/ntfs/attrib.c::ntfs_find_vcn_nolock() where after
Anton Altaparmakov [Mon, 7 Mar 2005 21:43:38 +0000]
NTFS: - Fix bug in fs/ntfs/attrib.c::ntfs_find_vcn_nolock() where after
        dropping the read lock and taking the write lock we were not checking
        whether someone else did not already do the work we wanted to do.
      - Rename ntfs_find_vcn_nolock() to ntfs_attr_find_vcn_nolock().
      - Tidy up some comments in fs/ntfs/runlist.c.
      - Add LCN_ENOMEM and LCN_EIO definitions to fs/ntfs/runlist.h.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Add fs/ntfs/attrib.[hc]::ntfs_attr_vcn_to_lcn_nolock() used by the new
Anton Altaparmakov [Mon, 7 Mar 2005 21:36:18 +0000]
NTFS: Add fs/ntfs/attrib.[hc]::ntfs_attr_vcn_to_lcn_nolock() used by the new
      write code.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Add AT_EA in addition to AT_DATA to whitelist for being allowed to be
Anton Altaparmakov [Thu, 3 Mar 2005 16:38:59 +0000]
NTFS: Add AT_EA in addition to AT_DATA to whitelist for being allowed to be
      non-resident in fs/ntfs/attrib.c::ntfs_attr_can_be_non_resident().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Correct sparse file handling. The compressed values need to be
Anton Altaparmakov [Thu, 3 Mar 2005 14:43:43 +0000]
NTFS: Correct sparse file handling.  The compressed values need to be
      checked and set in the ntfs inode as done for compressed files
      and the compressed size needs to be used for vfs inode->i_blocks
      instead of the allocated size, again, as done for compressed files.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Make fs/ntfs/namei.c::ntfs_get_{parent,dentry} static and move the
Anton Altaparmakov [Thu, 3 Mar 2005 13:44:15 +0000]
NTFS: Make fs/ntfs/namei.c::ntfs_get_{parent,dentry} static and move the
      definition of ntfs_export_ops from fs/ntfs/super.c to namei.c.
      Also, declare ntfs_export_ops in fs/ntfs/ntfs.h.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix printk format warnings on ia64. (Randy Dunlap)
Randy Dunlap [Thu, 3 Mar 2005 11:19:53 +0000]
NTFS: Fix printk format warnings on ia64. (Randy Dunlap)

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Set the ntfs_inode->allocated_size to the real allocated size in the
Anton Altaparmakov [Wed, 2 Mar 2005 17:03:24 +0000]
NTFS: - Set the ntfs_inode->allocated_size to the real allocated size in the
        mft record for resident attributes (fs/ntfs/inode.c).
      - Small readability cleanup to use "a" instead of "ctx->attr"
        everywhere (fs/ntfs/inode.c).

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix a nasty runlist merge bug when merging two holes.
Anton Altaparmakov [Fri, 18 Feb 2005 10:03:13 +0000]
NTFS: Fix a nasty runlist merge bug when merging two holes.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Change time to u64 in time.h::ntfs2utc() as it otherwise generates a
Anton Altaparmakov [Fri, 18 Feb 2005 09:23:39 +0000]
NTFS: Change time to u64 in time.h::ntfs2utc() as it otherwise generates a
      warning in the do_div() call on sparc32.  Thanks to Meelis Roos for the
      report and analysis of the warning.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Split ntfs_map_runlist() into ntfs_map_runlist() and a non-locking
Anton Altaparmakov [Tue, 15 Feb 2005 10:08:43 +0000]
NTFS: - Split ntfs_map_runlist() into ntfs_map_runlist() and a non-locking
helper ntfs_map_runlist_nolock() which is used by ntfs_map_runlist().
This allows us to map runlist fragments with the runlist lock already
held without having to drop and reacquire it around the call.  Adapt
all callers.
      - Change ntfs_find_vcn() to ntfs_find_vcn_nolock() which takes a locked
runlist.  This allows us to find runlist elements with the runlist
lock already held without having to drop and reacquire it around the
call.  Adapt all callers.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix a bug in fs/ntfs/runlist.c::ntfs_mapping_pairs_decompress() in
Anton Altaparmakov [Thu, 3 Feb 2005 12:04:36 +0000]
NTFS: Fix a bug in fs/ntfs/runlist.c::ntfs_mapping_pairs_decompress() in
      the creation of the unmapped runlist element for the base attribute
      extent.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Add disable_sparse mount option together with a per volume sparse
Anton Altaparmakov [Thu, 3 Feb 2005 12:02:56 +0000]
NTFS: - Add disable_sparse mount option together with a per volume sparse
enable bit which is set appropriately and a per inode sparse disable
bit which is preset on some system file inodes as appropriate.
      - Enforce that sparse support is disabled on NTFS volumes pre 3.0.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Optimise/reorganise some error handling code in fs/ntfs/aops.c.
Anton Altaparmakov [Thu, 13 Jan 2005 16:03:38 +0000]
NTFS: Optimise/reorganise some error handling code in fs/ntfs/aops.c.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fixup the resident attribute resizing code in
Anton Altaparmakov [Thu, 13 Jan 2005 15:26:29 +0000]
NTFS: Fixup the resident attribute resizing code in
      fs/ntfs/aops.c::ntfs_{prepare,commit}_write()() and re-enable it.
      It should be safe now.  (Famous last words...)

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Fix stupid bug in fs/ntfs/mft.c introduced in last changeset.
Anton Altaparmakov [Thu, 13 Jan 2005 11:04:39 +0000]
NTFS: Fix stupid bug in fs/ntfs/mft.c introduced in last changeset.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Repeat a failed ntfs_truncate() in fs/ntfs/aops.c::ntfs_writepage()
Anton Altaparmakov [Wed, 12 Jan 2005 13:52:30 +0000]
NTFS: Repeat a failed ntfs_truncate() in fs/ntfs/aops.c::ntfs_writepage()
      and abort if it fails again.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Use i_size_{read,write}() in fs/ntfs/{aops.c,mft.c} and protect
Anton Altaparmakov [Wed, 12 Jan 2005 13:08:26 +0000]
NTFS: Use i_size_{read,write}() in fs/ntfs/{aops.c,mft.c} and protect
      access to the i_size and other size fields using the size_lock.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: Use i_size_read() in fs/ntfs/inode.c once and then use the cached value
Anton Altaparmakov [Fri, 19 Nov 2004 22:16:00 +0000]
NTFS: Use i_size_read() in fs/ntfs/inode.c once and then use the cached value
      afterwards when reading the size of the bitmap inode.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - Use i_size_read() in fs/ntfs/super.c once and then use the cached
Anton Altaparmakov [Thu, 18 Nov 2004 20:34:59 +0000]
NTFS: - Use i_size_read() in fs/ntfs/super.c once and then use the cached
value afterwards.  Cache the initialized_size in the same way and
protect access to the two sizes using the size_lock.
      - Minor optimization to fs/ntfs/super.c::ntfs_statfs() and its helpers.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: In fs/ntfs/dir.c, use i_size_read() once and then the cached value
Anton Altaparmakov [Thu, 18 Nov 2004 15:01:06 +0000]
NTFS: In fs/ntfs/dir.c, use i_size_read() once and then the cached value
      afterwards.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoNTFS: - In fs/ntfs/compress.c, use i_size_read() at the start and then use the
Anton Altaparmakov [Thu, 18 Nov 2004 13:46:45 +0000]
NTFS: - In fs/ntfs/compress.c, use i_size_read() at the start and then use the
cached value everywhere.  Cache the initialized_size in the same way
and protect the critical region where the two sizes are read using the
new size_lock of the ntfs inode.
      - Add the new size_lock to the ntfs_inode structure (fs/ntfs/inode.h)
and initialize it (fs/ntfs/inode.c).

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>

15 years agoMerge with /usr/src/ntfs-2.6.git
Anton Altaparmakov [Thu, 5 May 2005 09:15:25 +0000]
Merge with /usr/src/ntfs-2.6.git

15 years agoAutomatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2...
Linus Torvalds [Thu, 5 May 2005 02:52:45 +0000]
Merge ... /linux/kernel/git/aegl/linux-2.6.git

15 years agoMerge with /usr/src/ntfs-2.6.git
Anton Altaparmakov [Wed, 4 May 2005 23:08:35 +0000]
Merge with /usr/src/ntfs-2.6.git

15 years agoAutomatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2...
Linus Torvalds [Wed, 4 May 2005 21:23:14 +0000]
Merge ... /linux/kernel/git/shaggy/jfs-2.6.git/

15 years ago[IA64-SGI] convert some sn SAL_CALLs to ia64_sal_oemcall calls
Dean Nelson [Thu, 24 Mar 2005 02:05:00 +0000]
[IA64-SGI] convert some sn SAL_CALLs to ia64_sal_oemcall calls

Convert some sn SAL_CALLs to ia64_sal_oemcall calls so that they can be
called by kernel modules.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

15 years ago[IA64-SGI] move nodepda pointer out of pda
Dean Nelson [Tue, 22 Mar 2005 23:00:00 +0000]
[IA64-SGI] move nodepda pointer out of pda

Remove the p_nodepda and p_subnodepda pointers from the pda_s structure.
And then define a new per-cpu pointer to the nodepda and export it so
that it can be accessed by kernel modules.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

15 years agoNTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().
Anton Altaparmakov [Wed, 17 Nov 2004 15:45:08 +0000]
NTFS: Use i_size_read() in fs/ntfs/file.c::ntfs_file_open().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>