1. 26 3月, 2016 4 次提交
    • Y
      ceph: remove unnecessary NULL check · 45311267
      Yan, Zheng 提交于
      If page->mapping is NULL, releasepage() callback does not get called.
      Remove the unnecessary NULL check to make static code analysis tool
      happy
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      45311267
    • I
      ceph: kill ceph_empty_snapc · 34b759b4
      Ilya Dryomov 提交于
      ceph_empty_snapc->num_snaps == 0 at all times.  Passing such a snapc to
      ceph_osdc_alloc_request() (possibly through ceph_osdc_new_request()) is
      equivalent to passing NULL, as ceph_osdc_alloc_request() uses it only
      for sizing the request message.
      
      Further, in all four cases the subsequent ceph_osdc_build_request() is
      passed NULL for snapc, meaning that 0 is encoded for seq and num_snaps
      and making ceph_empty_snapc entirely useless.  The two cases where it
      actually mattered were removed in commits 86056090 ("ceph: avoid
      sending unnessesary FLUSHSNAP message") and 23078637 ("ceph: fix
      queuing inode to mdsdir's snaprealm").
      Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
      Reviewed-by: NYan, Zheng <zyan@redhat.com>
      34b759b4
    • A
      ceph: fix a wrong comparison · ce435593
      Anton Protopopov 提交于
      A negative value rc compared to the positive value ENOENT in the
      finish_read() function.
      Signed-off-by: NAnton Protopopov <a.s.protopopov@gmail.com>
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      ce435593
    • Y
      ceph: scattered page writeback · 5b64640c
      Yan, Zheng 提交于
      This patch makes ceph_writepages_start() try using single OSD request
      to write all dirty pages within a strip unit. When a nonconsecutive
      dirty page is found, ceph_writepages_start() tries starting a new write
      operation to existing OSD request. If it succeeds, it uses the new
      operation to writeback the dirty page.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      5b64640c
  2. 05 3月, 2016 1 次提交
  3. 22 1月, 2016 3 次提交
  4. 07 11月, 2015 1 次提交
  5. 11 9月, 2015 1 次提交
  6. 09 9月, 2015 3 次提交
  7. 25 6月, 2015 7 次提交
  8. 22 4月, 2015 1 次提交
  9. 20 4月, 2015 1 次提交
  10. 12 4月, 2015 1 次提交
  11. 19 2月, 2015 1 次提交
  12. 11 2月, 2015 1 次提交
  13. 09 1月, 2015 1 次提交
  14. 18 12月, 2014 6 次提交
  15. 15 10月, 2014 1 次提交
    • C
      ceph: remove redundant code for max file size verification · a4483e8a
      Chao Yu 提交于
      Both ceph_update_writeable_page and ceph_setattr will verify file size
      with max size ceph supported.
      There are two caller for ceph_update_writeable_page, ceph_write_begin and
      ceph_page_mkwrite. For ceph_write_begin, we have already verified the size in
      generic_write_checks of ceph_write_iter; for ceph_page_mkwrite, we have no
      chance to change file size when mmap. Likewise we have already verified the size
      in inode_change_ok when we call ceph_setattr.
      So let's remove the redundant code for max file size verification.
      Signed-off-by: NChao Yu <chao2.yu@samsung.com>
      Reviewed-by: NYan, Zheng <zyan@redhat.com>
      a4483e8a
  16. 07 6月, 2014 1 次提交
  17. 06 6月, 2014 1 次提交
  18. 07 5月, 2014 1 次提交
  19. 29 1月, 2014 1 次提交
  20. 01 1月, 2014 2 次提交
  21. 14 12月, 2013 1 次提交