1. 03 8月, 2016 1 次提交
  2. 06 7月, 2016 1 次提交
  3. 30 5月, 2016 1 次提交
  4. 31 12月, 2015 1 次提交
  5. 09 12月, 2015 1 次提交
    • A
      replace ->follow_link() with new method that could stay in RCU mode · 6b255391
      Al Viro 提交于
      new method: ->get_link(); replacement of ->follow_link().  The differences
      are:
      	* inode and dentry are passed separately
      	* might be called both in RCU and non-RCU mode;
      the former is indicated by passing it a NULL dentry.
      	* when called that way it isn't allowed to block
      and should return ERR_PTR(-ECHILD) if it needs to be called
      in non-RCU mode.
      
      It's a flagday change - the old method is gone, all in-tree instances
      converted.  Conversion isn't hard; said that, so far very few instances
      do not immediately bail out when called in RCU mode.  That'll change
      in the next commits.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      6b255391
  6. 10 11月, 2015 1 次提交
  7. 12 7月, 2015 1 次提交
  8. 15 5月, 2015 1 次提交
  9. 11 5月, 2015 3 次提交
    • A
      don't pass nameidata to ->follow_link() · 6e77137b
      Al Viro 提交于
      its only use is getting passed to nd_jump_link(), which can obtain
      it from current->nameidata
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      6e77137b
    • A
      new ->follow_link() and ->put_link() calling conventions · 680baacb
      Al Viro 提交于
      a) instead of storing the symlink body (via nd_set_link()) and returning
      an opaque pointer later passed to ->put_link(), ->follow_link() _stores_
      that opaque pointer (into void * passed by address by caller) and returns
      the symlink body.  Returning ERR_PTR() on error, NULL on jump (procfs magic
      symlinks) and pointer to symlink body for normal symlinks.  Stored pointer
      is ignored in all cases except the last one.
      
      Storing NULL for opaque pointer (or not storing it at all) means no call
      of ->put_link().
      
      b) the body used to be passed to ->put_link() implicitly (via nameidata).
      Now only the opaque pointer is.  In the cases when we used the symlink body
      to free stuff, ->follow_link() now should store it as opaque pointer in addition
      to returning it.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      680baacb
    • A
      9p: don't bother with __getname() in ->follow_link() · 90e4fc88
      Al Viro 提交于
      We copy there a kmalloc'ed string and proceed to kfree that string immediately
      after that.  Easier to just feed that string to nd_set_link() and _not_
      kfree it until ->put_link() (which becomes kfree_put_link() in that case).
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      90e4fc88
  10. 16 4月, 2015 1 次提交
  11. 20 11月, 2014 1 次提交
  12. 09 10月, 2014 1 次提交
  13. 05 6月, 2014 1 次提交
  14. 10 1月, 2014 1 次提交
  15. 24 11月, 2013 3 次提交
  16. 25 10月, 2013 1 次提交
  17. 18 9月, 2013 1 次提交
  18. 28 2月, 2013 1 次提交
  19. 26 2月, 2013 3 次提交
  20. 12 2月, 2013 1 次提交
  21. 11 2月, 2013 2 次提交
  22. 14 7月, 2012 7 次提交
  23. 30 5月, 2012 1 次提交
  24. 07 1月, 2012 1 次提交
  25. 06 1月, 2012 1 次提交
    • J
      9p: Reduce object size with CONFIG_NET_9P_DEBUG · 5d385153
      Joe Perches 提交于
      Reduce object size by deduplicating formats.
      
      Use vsprintf extension %pV.
      Rename P9_DPRINTK uses to p9_debug, align arguments.
      Add function for _p9_debug and macro to add __func__.
      Add missing "\n"s to p9_debug uses.
      Remove embedded function names as p9_debug adds it.
      Remove P9_EPRINTK macro and convert use to pr_<level>.
      Add and use pr_fmt and pr_<level>.
      
      $ size fs/9p/built-in.o*
         text	   data	    bss	    dec	    hex	filename
        62133	    984	  16000	  79117	  1350d	fs/9p/built-in.o.new
        67342	    984	  16928	  85254	  14d06	fs/9p/built-in.o.old
      $ size net/9p/built-in.o*
         text	   data	    bss	    dec	    hex	filename
        88792	   4148	  22024	 114964	  1c114	net/9p/built-in.o.new
        94072	   4148	  23232	 121452	  1da6c	net/9p/built-in.o.old
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      5d385153
  26. 04 1月, 2012 2 次提交