18 Jul, 2007
1 commit
-
I can never remember what the function to register to receive VM pressure
is called. I have to trace down from __alloc_pages() to find it.It's called "set_shrinker()", and it needs Your Help.
1) Don't hide struct shrinker. It contains no magic.
2) Don't allocate "struct shrinker". It's not helpful.
3) Call them "register_shrinker" and "unregister_shrinker".
4) Call the function "shrink" not "shrinker".
5) Reduce the 17 lines of waffly comments to 13, but document it properly.Signed-off-by: Rusty Russell
Cc: David Chinner
Cc: Trond Myklebust
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
14 Jul, 2007
2 commits
-
Avoid using a special "zero inode" as the parent of the quota inode as
this can confuse the filestreams code into thinking the quota inode has a
parent. We do not want the quota inode to follow filestreams allocation
rules, so pass a NULL as the parent inode and detect this condition when
doing stream associations.SGI-PV: 964469
SGI-Modid: xfs-linux-melb:xfs-kern:29098aSigned-off-by: David Chinner
Signed-off-by: Tim Shimmin -
SGI-PV: 964986
SGI-Modid: xfs-linux-melb:xfs-kern:28642aSigned-Off-By: Andrew Morton
Signed-off-by: David Chinner
Signed-off-by: Tim Shimmin
08 May, 2007
4 commits
-
When uquota and oquota (gquota/pquota) are enabled for accounting both are
enforced if ether has enforcement active.Conditions:
- Both XFS_UQUOTA_ACCT and XFS_GQUOTA_ACCT are enabled.
- Either XFS_UQUOTA_ENFD or XFS_OQUOTA_ENFD is enabled.
- The usage without enforce is reached at the soft limit.
Problems:
1. "repquota" shows all grace time even if no enforcement.
2. we cannot make a file over a hard limits even if no enforcement.
SGI-PV: 962291
SGI-Modid: xfs-linux-melb:xfs-kern:28272aSigned-off-by: Kouta Ooizumi
Signed-off-by: Donald Douwsma
Signed-off-by: Tim Shimmin -
xfs_qm_scall_quotaon was incorrectly failing requests to enable group
quota enforcement. Fixes logic error in OQUOTA handling.SGI-PV: 961964
SGI-Modid: xfs-linux-melb:xfs-kern:28227aSigned-off-by: Donald Douwsma
Signed-off-by: Tim Shimmin -
When quotas are mounted or remounted without a particular quota type the
quota accounting for that type becomes invalid. Previously we were
ignoring this leading to accounting errors.SGI-PV: 961964
SGI-Modid: xfs-linux-melb:xfs-kern:28225aSigned-off-by: Donald Douwsma
Signed-off-by: Utako Kusaka
Signed-off-by: Vlad Apostolov
Signed-off-by: Tim Shimmin -
NULL.
Patch provided by Eric Sandeen.
SGI-PV: 961693
SGI-Modid: xfs-linux-melb:xfs-kern:28199aSigned-off-by: Eric Sandeen
Signed-off-by: Lachlan McIlroy
Signed-off-by: Tim Shimmin
10 Feb, 2007
4 commits
-
xfs_mac.h and xfs_cap.h provide definitions and macros that aren't used
anywhere in XFS at all. They are left-overs from "to be implement at some
point in the future" functionality that Irix XFS has. If this
functionality ever goes into Linux, it will be provided at a different
layer, most likely through the security hooks in the kernel so we will
never need this functionality in XFS.Patch provided by Eric Sandeen (sandeen@sandeen.net).
SGI-PV: 960895
SGI-Modid: xfs-linux-melb:xfs-kern:28036aSigned-off-by: Eric Sandeen
Signed-off-by: David Chinner
Signed-off-by: Tim Shimmin -
The firstblock argument to xfs_bmap_finish is not used by that function.
Remove it and cleanup the code a bit.Patch provided by Eric Sandeen.
SGI-PV: 960196
SGI-Modid: xfs-linux-melb:xfs-kern:28034aSigned-off-by: Eric Sandeen
Signed-off-by: David Chinner
Signed-off-by: Tim Shimmin -
SGI-PV: 959137
SGI-Modid: xfs-linux-melb:xfs-kern:27710aSigned-off-by: Lachlan McIlroy
Signed-off-by: Eric Sandeen
Signed-off-by: Tim Shimmin -
gcc-4.1 and more recent aggressively inline static functions which
increases XFS stack usage by ~15% in critical paths. Prevent this from
occurring by adding noinline to the STATIC definition.Also uninline some functions that are too large to be inlined and were
causing problems with CONFIG_FORCED_INLINING=y.Finally, clean up all the different users of inline, __inline and
__inline__ and put them under one STATIC_INLINE macro. For debug kernels
the STATIC_INLINE macro uninlines those functions.SGI-PV: 957159
SGI-Modid: xfs-linux-melb:xfs-kern:27585aSigned-off-by: David Chinner
Signed-off-by: David Chatterton
Signed-off-by: Tim Shimmin
28 Sep, 2006
5 commits
-
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26907aSigned-off-by: Nathan Scott
Signed-off-by: Tim Shimmin -
range.
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26803aSigned-off-by: Nathan Scott
Signed-off-by: Tim Shimmin -
one page.
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26800aSigned-off-by: Nathan Scott
Signed-off-by: Tim Shimmin -
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26749aSigned-off-by: Eric Sandeen
Signed-off-by: Nathan Scott
Signed-off-by: Tim Shimmin -
SGI-PV: 955302
SGI-Modid: xfs-linux-melb:xfs-kern:26747aSigned-off-by: Eric Sandeen
Signed-off-by: Nathan Scott
Signed-off-by: Tim Shimmin
07 Sep, 2006
1 commit
-
SGI-PV: 955993
SGI-Modid: xfs-linux-melb:xfs-kern:26934aSigned-off-by: Nathan Scott
Signed-off-by: David Chatterton
28 Jul, 2006
1 commit
-
Before putting them into struct statfs they should be endian-swapped.
SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:26550aSigned-off-by: Christoph Hellwig
Signed-off-by: Nathan Scott
20 Jun, 2006
1 commit
-
pure bloat.
SGI-PV: 952969
SGI-Modid: xfs-linux-melb:xfs-kern:26251aSigned-off-by: Nathan Scott
19 Jun, 2006
1 commit
-
is check if semaphore is actually locked, which can be trivially done in
portable way. Code gets more reabable, while we are at it...SGI-PV: 953915
SGI-Modid: xfs-linux-melb:xfs-kern:26274aSigned-off-by: Al Viro
Signed-off-by: Nathan Scott
09 Jun, 2006
7 commits
-
porters.
SGI-PV: 953338
SGI-Modid: xfs-linux-melb:xfs-kern:26108aSigned-off-by: Nathan Scott
-
SGI-PV: 953338
SGI-Modid: xfs-linux-melb:xfs-kern:26107aSigned-off-by: Nathan Scott
-
SGI-PV: 9533338
SGI-Modid: xfs-linux-melb:xfs-kern:26106aSigned-off-by: Nathan Scott
-
originally by Glen.
SGI-PV: 932952
SGI-Modid: xfs-linux-melb:xfs-kern:26105aSigned-off-by: Nathan Scott
-
SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26102aSigned-off-by: Nathan Scott
-
shutdown vop flags consistent with sync vop flags declarations too.
SGI-PV: 939911
SGI-Modid: xfs-linux-melb:xfs-kern:26096aSigned-off-by: Nathan Scott
-
the range spanned by modifications to the in-core extent map. Add
XFS_BUNMAPI() and XFS_SWAP_EXTENTS() macros that call xfs_bunmapi() and
xfs_swap_extents() via the ioops vector. Change all calls that may modify
the in-core extent map for the data fork to go through the ioops vector.
This allows a cache of extent map data to be kept in sync.SGI-PV: 947615
SGI-Modid: xfs-linux-melb:xfs-kern:209226aSigned-off-by: Olaf Weber
Signed-off-by: Nathan Scott
31 Mar, 2006
1 commit
-
its use.
SGI-PV: 951300
SGI-Modid: xfs-linux-melb:xfs-kern:25633aSigned-off-by: Nathan Scott
29 Mar, 2006
1 commit
-
these typos.
SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:25539aSigned-off-by: Nathan Scott
22 Mar, 2006
1 commit
-
Engelhardt.
SGI-PV: 947038
SGI-Modid: xfs-linux-melb:xfs-kern:25529aSigned-off-by: Nathan Scott
14 Mar, 2006
3 commits
-
code to prepare for an upcoming mod which will introduce multi-level
in-core extent allocations. Although the in-core extent management is
using a new code path in this mod, the functionality remains the same.
Major changes include: - Introduce 10 new subroutines which re-orgainze
the existing code but do NOT change functionality:
xfs_iext_get_ext() xfs_iext_insert() xfs_iext_add()
xfs_iext_remove() xfs_iext_remove_inline()
xfs_iext_remove_direct() xfs_iext_realloc_direct()
xfs_iext_direct_to_inline() xfs_iext_inline_to_direct()
xfs_iext_destroy() - Remove 2 subroutines (functionality moved to new
subroutines above): xfs_iext_realloc() -replaced by xfs_iext_add()
and xfs_iext_remove() xfs_bmap_insert_exlist() - replaced by
xfs_iext_insert() xfs_bmap_delete_exlist() - replaced by
xfs_iext_remove() - Replace all hard-coded (indexed) extent assignments
with a call to xfs_iext_get_ext() - Replace all extent record pointer
arithmetic (ep++, ep--, base + lastx,..) with calls to
xfs_iext_get_ext() - Update comments to remove the idea of a single
"extent list" and introduce "extent record" terminology insteadSGI-PV: 928864
SGI-Modid: xfs-linux-melb:xfs-kern:207390aSigned-off-by: Mandy Kirkconnell
Signed-off-by: Nathan Scott -
to linux.
SGI-PV: 931456
SGI-Modid: xfs-linux-melb:xfs-kern:25238aSigned-off-by: Tim Shimmin
Signed-off-by: Nathan Scott -
quota code.
SGI-PV: 949149
SGI-Modid: xfs-linux-melb:xfs-kern:25123aSigned-off-by: Nathan Scott
28 Feb, 2006
1 commit
-
regressed recently via the fix for inherited quota inode attributes.
SGI-PV: 947312
SGI-Modid: xfs-linux-melb:xfs-kern:25318aSigned-off-by: Nathan Scott
16 Jan, 2006
2 commits
-
Signed-off-by: Nathan Scott
15 Jan, 2006
1 commit
-
This patch removes pointless parentheses from return statements.
Signed-off-by: Jesper Juhl
Signed-off-by: Adrian Bunk
13 Jan, 2006
1 commit
12 Jan, 2006
2 commits
-
fs: Use where capable() is used.
Signed-off-by: Randy Dunlap
Acked-by: Tim Schmielau
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
equivalents.
SGI-PV: 907752
SGI-Modid: xfs-linux-melb:xfs-kern:24961aSigned-off-by: Nathan Scott