1. 19 Jun, 2015 1 commit
  2. 18 Jun, 2015 1 commit
    • Bob Peterson's avatar
      GFS2: Don't add all glocks to the lru · e7ccaf5f
      Bob Peterson authored
      
      
      The glocks used for resource groups often come and go hundreds of
      thousands of times per second. Adding them to the lru list just
      adds unnecessary contention for the lru_lock spin_lock, especially
      considering we're almost certainly going to re-use the glock and
      take it back off the lru microseconds later. We never want the
      glock shrinker to cull them anyway. This patch adds a new bit in
      the glops that determines which glock types get put onto the lru
      list and which ones don't.
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      Acked-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
      e7ccaf5f
  3. 09 Jun, 2015 1 commit
  4. 08 Jun, 2015 1 commit
  5. 02 Jun, 2015 2 commits
    • Abhi Das's avatar
      gfs2: limit quota log messages · 9cde2898
      Abhi Das authored
      
      
      This patch makes the quota subsystem only report once that a
      particular user/group has exceeded their allotted quota.
      
      Previously, it was possible for a program to continuously try
      exceeding quota (despite receiving EDQUOT) and in turn trigger
      gfs2 to issue a kernel log message about quota exceed. In theory,
      this could get out of hand and flood the log and the filesystem
      hosting the log files.
      Signed-off-by: default avatarAbhi Das <adas@redhat.com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      9cde2898
    • Abhi Das's avatar
      gfs2: fix quota updates on block boundaries · 39a72580
      Abhi Das authored
      
      
      For smaller block sizes (512B, 1K, 2K), some quotas straddle block
      boundaries such that the usage value is on one block and the rest
      of the quota is on the previous block. In such cases, the value
      does not get updated correctly. This patch fixes that by addressing
      the boundary conditions correctly.
      
      This patch also adds a (s64) cast that was missing in a call to
      gfs2_quota_change() in inode.c
      Signed-off-by: default avatarAbhi Das <adas@redhat.com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      39a72580
  6. 18 May, 2015 1 commit
  7. 05 May, 2015 5 commits
    • Fabian Frederick's avatar
      gfs2: kerneldoc warning fixes · 1272574b
      Fabian Frederick authored
      
      
      Fixes the following kernel-doc warnings:
      Warning(fs/gfs2/aops.c:180): No description found for parameter 'wbc'
      Warning(fs/gfs2/aops.c:236): No description found for parameter 'end'
      Warning(fs/gfs2/aops.c:236): No description found for parameter 'done_index'
      Warning(fs/gfs2/aops.c:236): Excess function parameter 'writepage' description in 'gfs2_write_jdata_pagevec'
      Warning(fs/gfs2/aops.c:346): Excess function parameter 'writepage' description in 'gfs2_write_cache_jdata'
      Warning(fs/gfs2/aops.c:346): Excess function parameter 'data' description in 'gfs2_write_cache_jdata'
      Warning(fs/gfs2/aops.c:605): No description found for parameter 'file'
      Warning(fs/gfs2/aops.c:605): No description found for parameter 'mapping'
      Warning(fs/gfs2/aops.c:605): No description found for parameter 'pages'
      Warning(fs/gfs2/aops.c:605): No description found for parameter 'nr_pages'
      Warning(fs/gfs2/aops.c:870): No description found for parameter 'copied'
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      1272574b
    • Fabian Frederick's avatar
      gfs2: convert simple_str to kstr · e50ead48
      Fabian Frederick authored
      
      
      -Remove obsolete simple_str functions.
      -Return error code when kstr failed.
      -This patch also calls functions corresponding to destination type.
      
      Thanks to Alexey Dobriyan for suggesting improvements in
      block_store() and wdack_store()
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      e50ead48
    • Benjamin Marzinski's avatar
      GFS2: make sure S_NOSEC flag isn't overwritten · 01e64ee4
      Benjamin Marzinski authored
      
      
      At the end of gfs2_set_inode_flags inode->i_flags is set to flags, so
      we should be modifying flags instead of inode->i_flags, so it isn't
      overwritten.
      
      Signed-off-by: Benjamin Marzinski <bmarzins redhat com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      01e64ee4
    • Benjamin Marzinski's avatar
      GFS2: add support for rename2 and RENAME_EXCHANGE · a63b7bbc
      Benjamin Marzinski authored
      
      
      gfs2 now uses the rename2 directory iop, and supports the
      RENAME_EXCHANGE flag (as well as RENAME_NOREPLACE, which the vfs
      takes care of).
      
      Signed-off-by: Benjamin Marzinski <bmarzins redhat com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      a63b7bbc
    • Abhi Das's avatar
      gfs2: handle NULL rgd in set_rgrp_preferences · 959b6717
      Abhi Das authored
      
      
      The function set_rgrp_preferences() does not handle the (rarely
      returned) NULL value from gfs2_rgrpd_get_next() and this patch
      fixes that.
      
      The fs image in question is only 150MB in size which allows for
      only 1 rgrp to be created. The in-memory rb tree has only 1 node
      and when gfs2_rgrpd_get_next() is called on this sole rgrp, it
      returns NULL. (Default behavior is to wrap around the rb tree and
      return the first node to give the illusion of a circular linked
      list. In the case of only 1 rgrp, we can't have
      gfs2_rgrpd_get_next() return the same rgrp (first, last, next all
      point to the same rgrp)... that would cause unintended consequences
      and infinite loops.)
      Signed-off-by: default avatarAbhi Das <adas@redhat.com>
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      959b6717
  8. 01 May, 2015 2 commits
  9. 24 Apr, 2015 2 commits
  10. 14 Apr, 2015 24 commits