1. 14 May, 2015 1 commit
  2. 10 May, 2015 3 commits
    • Al Viro's avatar
      don't pass nameidata to ->follow_link() · 6e77137b
      Al Viro authored
      
      
      its only use is getting passed to nd_jump_link(), which can obtain
      it from current->nameidata
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      6e77137b
    • Al Viro's avatar
      new ->follow_link() and ->put_link() calling conventions · 680baacb
      Al Viro authored
      
      
      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: default avatarAl Viro <viro@zeniv.linux.org.uk>
      680baacb
    • Al Viro's avatar
      9p: don't bother with __getname() in ->follow_link() · 90e4fc88
      Al Viro authored
      
      
      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: default avatarAl Viro <viro@zeniv.linux.org.uk>
      90e4fc88
  3. 15 Apr, 2015 1 commit
  4. 19 Nov, 2014 1 commit
  5. 09 Oct, 2014 1 commit
  6. 04 Jun, 2014 1 commit
  7. 10 Jan, 2014 1 commit
  8. 23 Nov, 2013 3 commits
  9. 24 Oct, 2013 1 commit
  10. 17 Sep, 2013 1 commit
  11. 27 Feb, 2013 1 commit
  12. 26 Feb, 2013 3 commits
  13. 12 Feb, 2013 1 commit
  14. 10 Feb, 2013 2 commits
  15. 14 Jul, 2012 7 commits
  16. 29 May, 2012 1 commit
  17. 06 Jan, 2012 1 commit
  18. 05 Jan, 2012 1 commit
    • Joe Perches's avatar
      9p: Reduce object size with CONFIG_NET_9P_DEBUG · 5d385153
      Joe Perches authored
      
      
      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: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
      5d385153
  19. 03 Jan, 2012 4 commits
  20. 02 Nov, 2011 1 commit
  21. 06 Sep, 2011 3 commits
  22. 01 Aug, 2011 1 commit